package com.zhang.flink.bean;

import java.sql.Timestamp;

/**
 * POJO CLASS
 * 1.必须是公有类
 * 2.所有字段必须是公有字段
 * 3.必须有空参构造器
 * @title:
 * @author: zhang
 * @date: 2022/2/11 20:28
 */
public class ClickEvent {
    public String name;
    public String url;
    public long ts;

    public ClickEvent(String name, String url, long ts) {
        this.name = name;
        this.url = url;
        this.ts = ts;
    }

    public ClickEvent() {
    }

    @Override
    public String toString() {
        return "ClickEvent{" +
                "name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", ts=" + new Timestamp(ts) +
                '}';
    }
}
